package kc0803;

import java.io.PrintStream;
import java.util.ArrayList;

public class sql
  implements sqllist
{
  ArrayList<Object> al = new ArrayList();
  
  public void ad(Object o)
  {
    this.al.add(o);
  }
  
  public void select(int i)
  {
    System.out.println(this.al.get(i));
  }
  
  public void selectall()
  {
    for (int i = 0; i < this.al.size(); i++) {
      System.out.println(this.al.get(i));
    }
  }
  
  public void insert(int n, Object o)
  {
    this.al.add(n, o);
  }
  
  public void update(int i, Object o)
  {
    this.al.set(i, o);
  }
  
  public void delete(int i)
  {
    this.al.remove(i);
  }
  
  public void insert(Object o) {}
}
